package cn.zbh.system.mapper;

import cn.zbh.basic.mapper.BasicMapper;

import cn.zbh.system.domain.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface RoleMapper extends BasicMapper<Role> {
    //t_role
    void add(Role role);
    //t_role_menu
void addRole2Menu(@Param("rid") Long id,@Param("menus")  List<Long> menus);
    //t_role_permission
    void addRole2Premission(@Param("rrid")Long id, @Param("permissions")List<Long> permissions);



    //删除
    void deleteEmployeeRole(long rid);

    void deleteRoleMenu(long rid);

    void deleteRolePermission(long rid);
    

}
